home *** CD-ROM | disk | FTP | other *** search
- Path: cloud9.net!not-for-mail
- From: jalvo@cloud9.net (John Alvord)
- Newsgroups: comp.lang.rexx
- Subject: Re: LINEIN Question (another one)
- Date: 16 Apr 1996 11:09:32 -0400
- Organization: Cloud 9 Internet, White Plains, NY, USA
- Distribution: inet
- Message-ID: <4l0d7c$moj@cloud9.net>
- References: <4ksfvk$3mpg@news-s01.ny.us.ibm.net>
- NNTP-Posting-Host: cloud9.net
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- jsbarbe@ibm.net wrote:
- : I can't figure out why my WARP REXX program fails. It is looping
- through files
- : (obtained with SysFileTree) and using LINEIN to read all the lines of each
- : file and write them to a single output file. WORKS GREAT until it hits the 32nd
- : file then it thinks all subsequent files have no lines. ie ... while lines(readfile) > 1
- : finds a 0.
- :
- : First I set READFILE to be the path and file name from the SysFileTree.
- : The read loop is preceded by a LINEIN(READFILE,1,0) (to make sure it's on 1st line)
- : The LINEIN in the read loop is: LINEIN(READFILE)
- :
- : It's NOT the 32nd file, since I can move it to another directory where it is within
- : the first 30 files and it reads fine
- :
- : It's not the subdirectory ... I've tried several and they all seem to fail at 32nd file.
- :
- : Is there some limit of "open files" that I must close after reading? Do I do that
- : with a STREAM command?
- : .. I'm stumped. Any ideas? Thanks, Steve
- add a x=lineout(fn) after finishing each file processing.
-
- john alvord
-